package io.coderyeah.ymcc.service;

import io.coderyeah.ymcc.domain.CourseOrder;
import com.baomidou.mybatisplus.service.IService;
import io.coderyeah.ymcc.dto.KillOrderParamDto;
import io.coderyeah.ymcc.dto.OrderParamDTO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author coderyeah
 * @since 2022-11-02
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String placeOrder(OrderParamDTO dto);

    void saveCourseOrderAndItem(CourseOrder order);

    CourseOrder getByOrderNo(String orderNo);

    void cancelOrder(String orderSn);


    String killPlaceOrder(KillOrderParamDto killOrderParamDto);
}
